package xyz.xtt.asset.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import xyz.xtt.asset.response.ResponseResult;

@FeignClient(name = "third-admin-service", url = "https://api-sandbox.xtt.xyz", configuration = MyConfiguration.class)
public interface ThirdAdminClient {
	/**
	 * 验证好友关系
	 * 
	 * @param userId
	 * @param friendId
	 * @return
	 */
	@GetMapping("/admin/v1/friend/isFriend")
	ResponseResult<Boolean> checkfriend(@RequestParam(value = "userId") String userId, @RequestParam(value = "friendId") String friendId);

}
